package com.sentrix.auto.printercenter.presentation.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class DataResponse<T> extends BaseResponse {

    @Schema(description = "请求结果数据")
    private T data;

    public DataResponse(String uid, boolean success, int code, String message) {
        this(uid, success, code, message, null);
    }

    public DataResponse(String uid, boolean success, int code, String message, T data) {
        super(uid, success, code, message);
        this.data = data;
    }

    public DataResponse(T Data){
        super("1", true, 200, "success");
        this.data = Data;
    }
}
